package elements.menu ;

class MenuItemFactory {
	
	public static function make(chartID:String, style:Properties ):MenuItem {
		
		switch( style.get('type') )
		{
			case 'camera-icon':
				return new CameraIcon(chartID, style);
				/*break*/
				
			default:
				return new MenuItem(chartID, style);
				/*break*/
		}
	}
}
